package com.sky.service;

import com.sky.dto.AddEmplyeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.UpdateEmplyeeDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;
import com.sky.vo.EmployeePageQueryVO;
import com.sky.vo.EmployeeQueryVO;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * */
    void addEmployee(AddEmplyeeDTO dto);

    PageResult<EmployeePageQueryVO> page(EmployeePageQueryDTO dto);

    void enableOrDisable(Long id, Integer status);

    EmployeeQueryVO getById(Long id);

    void update(UpdateEmplyeeDTO dto);
}
